﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Login.Master" Inherits="System.Web.Mvc.ViewPage<AccountView>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    New Account
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <div style="width: 350px;" align="left">
        <div class="box">
            <h2>
                <a href="#" id="toggle-box1" class="title">Nueva Cuenta</a>
            </h2>
            <div class="block" id="box1">
                <%Html.EnableClientValidation(); %>
                <%
                    using (Html.BeginForm("NewAccount", "Account", FormMethod.Post, new { id = "Accountform" }))
                    {%>
                <fieldset>
                    <legend>Cuenta</legend>
                    <%=Html.ValidationSummary()%>
                    <table>
                        <tr>
                            <td colspan="2">
                                <label>
                                    Nuevo Registro.</label>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <%=Html.LabelFor(c=> c.UserName) %>
                            </td>
                            <td>
                                <%=Html.EditorFor(c=> c.UserName) %>
                                <%=Html.ValidationMessageFor(c=> c.UserName,"*") %>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <%=Html.LabelFor(c=> c.Password) %>
                            </td>
                            <td>
                                <%=Html.EditorFor(c=> c.Password) %>
                                <%=Html.ValidationMessageFor(c=> c.Password,"*") %>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <%=Html.LabelFor(c=> c.NewPassword) %>
                            </td>
                            <td>
                                <%=Html.EditorFor(c=> c.NewPassword) %>
                                <%=Html.ValidationMessageFor(c=> c.NewPassword,"*") %>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <%=Html.LabelFor(c=> c.Email) %>
                            </td>
                            <td>
                                <%=Html.EditorFor(c=> c.Email) %>
                                <%=Html.ValidationMessageFor(c=> c.Email,"*") %>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <%=Html.LabelFor(c=> c.Email) %>
                            </td>
                            <td>
                                <%=Html.EditorFor(c=> c.Email) %>
                                <%=Html.ValidationMessageFor(c=> c.Email,"*") %>
                            </td>
                        </tr>
                        <tr>
                            <td>
                                <%=Html.LabelFor(c=> c.TypeUser) %>
                            </td>
                            <td>
                                <%=Html.EditorFor(c=> c.TypeUser) %>
                                <%=Html.ValidationMessageFor(c=> c.TypeUser,"*") %>
                            </td>
                        </tr>                        
                        <tr>
                            <td colspan="2">
                                <br />
                                <%=Url.SubmitButton("Agregar","Agregar","New","Account") %>
                                <br />
                            </td>
                        </tr>
                    </table>
                </fieldset>                
                <%} %>
            </div>
        </div>
    </div>
</asp:Content>
